//
//  Floor.hpp
//  宿舍管理系统
//
//  Created by 孟强定 on 2020/6/26.
//  Copyright © 2020 mqd. All rights reserved.
//

#ifndef Floor_hpp
#define Floor_hpp

#include <stdio.h>
#include "Room.hpp"
/*
 * Floor类表示一层, 一层里面有多个房间
 *
 */
class Floor{
private:
    Room* rooms;
    int buildingId,floorId,num;
    
public:
    Floor(int num=20);
    void init(int buildingId, int floorId);
    void autoDistribute();
    bool autoDistributeOne(Student* stu);
    bool manualDistributeOne(Student* stu, int roomId);
    bool delOne(Student* stu);
    bool find(int room);
};

#endif /* Floor_hpp */

